package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author lishuanwang
 */
@Getter
@Setter
public class Message extends BaseDomain {

    private Chatroom chat;

    private User author;

    private User receiver;

    private String content;

    private Boolean isRead = false;

    private Integer type;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
    private Date createTime;

    private Date readTime;


}